package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.core.domain.entity.BusinessUser;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.mapper.BusinessUserMapper;
import com.ruoyi.system.service.BusinessUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: 何建文
 * @create: 2022-05-15 16:07
 * @description:
 **/
@Service
@DataSource(DataSourceType.BUSINESS)
public class BusinessUserServiceImpl implements BusinessUserService {

    @Autowired
    private BusinessUserMapper userMapper;

    @Override
    public List<BusinessUser> selectAll() {
        return userMapper.getAll();
    }
}
